#include <compilation/task/ScopeTask.h>



namespace compilation
{

ScopeAgenda::~ScopeAgenda(void)
{
  for (VirtualInstruction* iter : m_markedInstruction)
    iter->mark = nullptr;
  m_markedInstruction.clear();
}

void ScopeAgenda::markInstructionWith(VirtualInstruction& instruction, VirtualTask& task)
{
  m_markedInstruction.push_back(&instruction);
  instruction.mark = (void*) 1;
}

} // compilation
